﻿using AutoMapper;
using B.S.DataBase.MyProject.Domain.ChronicDiseaseManagement;
using B.S.DataBase.MyProject.Domain.Infrastructures;
using B.S.DataBase.MyProject.Domain.KnowledgeManagements;
using B.S.DataBase.MyProject.Domain.MedicalMobileTerminals;
using B.S.DataBase.MyProject.Domain.wdx;
using MedicalPCTerminal.Write.API.Appcation.Commands.ReferralWriteCommand;
using MedicalPCTerminal.Write.API.Appcation.Commands.Sign;
using MedicalPCTerminal.Write.API.Appcation.Commands.ChronicCareCommand;
using MedicalPCTerminal.Write.API.Appcation.Commands.基础设置;
using MedicalPCTerminal.Write.API.Appcation.Commands.居民档案PC端;
using MedicalPCTerminal.Write.API.Appcation.Commands.知识管理;
using MedicalPCTerminal.Write.API.Appcation.Commands.Management;
using B.S.DataBase.MyProject.Domain.Management;
using MedicalPCTerminal.Write.API.Appcation.Commands.HealthMonitoringCommand;
using B.S.DataBase.MyProject.Domain.HealthMonitoring;
using MedicalPCTerminal.Write.API.Appcation.Commands.CarouselimageCommand;
using B.S.DataBase.MyProject.Domain.SmartHealthcareZSJ;
using MedicalPCTerminal.Write.API.Appcation.Commands.HospitalCommand;
using MedicalPCTerminal.Write.API.Appcation.Commands.HospitalDepartmentCommand;

namespace MedicalPCTerminal.Write.API
{
    /// <summary>
    /// AutoMapper 配置文件
    /// </summary>
    public class AutoMapperFilePro : Profile
    {
        /// <summary>
        /// 构造函数，配置模型映射关系
        /// </summary>
        public AutoMapperFilePro()
        {

            //基础设置-团队管理增加
            CreateMap<TeamInfoAddCommand, TeamInfo>().ReverseMap();
            //基础设置-种病管理
            CreateMap<AddDiseaseManagementCommand, DiseaseManagement>().ReverseMap();
            //基础设置-指标分类
            CreateMap<AddIndexClassCommand, IndexClass>().ReverseMap();
            //基础设置-指标定义
            CreateMap<AddIndexDefineCommand, IndexDefine>().ReverseMap();
            //基础设置-档案居民添加
            CreateMap<AddResidentFilesCommand, ResidentFiles>().ReverseMap();
            //签约管理-患者设备信息绑定
            CreateMap<AddSignDeviceBindCommand, SignDeviceBind>().ReverseMap();
            //签约管理类-患者签约
            CreateMap<AddNCDSignCommand, NCDSign>().ReverseMap();


            //基础设置-慢病指标
            CreateMap<AddDiseaseIndicatorsCommand, DiseaseIndicators>().ReverseMap();
            //基础设置-设备管理增加
            CreateMap<AddDeviceCommand, Device>().ReverseMap();

            //基础设置-转诊配置增加
            CreateMap<AddInstitutionCommand, Institution>().ReverseMap();
            //
            //知识管理-我的知识的添加
            CreateMap<AddKnowledgeCommand, KnowledgeManagement>().ReverseMap();





            //患者管理-随访添加
            CreateMap<ReferralWriteCommand, FollowInfo>().ReverseMap();
            //慢病管理-慢病诊疗记录
            //慢病管理-慢病诊疗-诊疗记录
            CreateMap<AddChronicCareJLCommand, MedicalRecord>().ReverseMap();


            CreateMap<AddBasicCommand, Basic>().ReverseMap();
            CreateMap<AddFollowCommand, Follow>().ReverseMap();
            //健康监测
            CreateMap<AddBMIMonitoringCommand, BMIMonitoring>().ReverseMap();//BMI
            CreateMap<AddBloodPressureCommand, BloodPressure>().ReverseMap();//血压
            CreateMap<AddBloodSugarCommand, BloodSugar>().ReverseMap();//血糖

            //慢病管理-慢病诊疗-就诊信息
            CreateMap<AddMedicalVisitInfoCommand, MedicalVisitInfo>().ReverseMap();
            //慢病管理-慢病诊疗-复诊计划
            CreateMap<AddFollowUpPlanCommand, FollowUpPlan>().ReverseMap();

            //基础设置-轮播图添加
            CreateMap<CarouselimageCreateCommand, Carouselimage>().ReverseMap();


            CreateMap<HospitalCreateCommand, HospitalZ>().ReverseMap();

            CreateMap<HospitalDepartmentCreateCommand, HospitalDepartmentZ>().ReverseMap();
        }
    }
}
